package com.zpy.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("book")
public class Book {
    @TableId(type = IdType.INPUT)
    private Integer id;
    private String bname;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date publishTime;
    private String author;
    private String unit;
    private String press;
    private String type;
    private Integer page;
    private double price;
    private String bimage;
    private Integer status;
    private Integer isopen;

}
